/**
 * 2018年12月24日上午10:10:58
 * @author 谢进财
 */
package com.baihang.project.ds.shiro;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baihang.framework.service.BaseService;
import com.baihang.project.ds.dao.EmployeeDao;
import com.baihang.project.ds.model.EmployeeModel;

/**
 * @author whati
 *
 */
@Service
public class ShiroService extends BaseService {
	private static Logger logger = LoggerFactory.getLogger(ShiroService.class);
	@Autowired
	private EmployeeDao dao;
	
	public EmployeeModel getEmployeeModel(String userName,String password) {
		EmployeeModel model = dao.getEmployeeModel(String.format("select * from hr_employee where uid='%s' and pwd='%s'", userName,password));
		return model;
	}
}
